require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('animate.css')
require('../css/advert.less')




document.addEventListener('DOMContentLoaded', function () {

    const mainJump = document.querySelector('#mainJump')
    const mainTime = document.querySelector('#mainTime')
    let time = 5
    let timejob = setInterval(function () {
        time--
        if (time == 0) {
            clearInterval(timejob)
            location.href = `./enroll.html`
        } else {
            mainTime.textContent = time + 's'
        }

    }, 1000)


    mainJump.addEventListener('click', function () {
        mainTime.textContent = 0 + 's'
        clearInterval(timejob)
        location.href = `./landing.html`
    })
})